package frankenstein.algo;
import java.util.*;
public class FacadePattern extends Pattern {

	public static int facadePatternNumber = 0;
	
	public FacadePattern(LinkedList<Integer> classesUsed, LinkedList<Integer> classesUsing, LinkedList<Integer> respsUsed
			,LinkedList<Integer>respsUsing, ArrayList<Integer> interfaces, ArrayList<Integer> classes) {
		this.patternType = FACADE;
		facadePatternNumber++;
		this.usedClasses.addAll(classesUsed);
		this.usingClasses.addAll(classesUsing);
		this.usedResponsibilities.addAll(respsUsed);
		this.usingResponsibilities.addAll(respsUsing);
		this.interfacesInvolved.addAll(interfaces);
		this.classesInvolved.addAll(classes);
		this.patternInterface = this.interfacesInvolved.get(0);
		this.patternName = "Facade";
		this.patternClass = this.classesInvolved.get(0);
		
	}

	public static int getFacadePatternNumber() {
		return facadePatternNumber;
	}

	public static void setFacadePatternNumber(int facadePatternNumber) {
		FacadePattern.facadePatternNumber = facadePatternNumber;
	}
	
	public Integer getFacadeInterface(){
		
		return this.patternInterface;
	}

}
